In Windows 10, every time I open anything which requires admin access (e.g. cmd -> run as administrator), the on-screen keyboard would pop up after clicking OK.
Settings -> Ease of Access -> Keyboard -> Turns on the On-Screen Keyboard was Off as expected, but it'd still happen.
I found that the "fix" was under:
Control Panel -> Ease of Access Center -> Change sign-in settings
where somehow I still had "Type without the keyboard (On-Screen Keyboard) ticked under "After sign-in".
Note that there is also a tick-box under:
Control Panel -> Ease of Access Center -> Use the computer without a mouse or keyboard
which can also cause problems.
Finally it's gone!