Keyboard and mouse not clicking in writer

Everything was working fine, used control+n to open new doc and now the cursor moves but will not click on anything

And does the mouse and keyboard work in other programs?