fixed key identification bugs, and improved input interaction

Some keys were being misidentified, for example F11 was
being identified as z. This has now been fixed.

I have also fixed the tool slider inputs failing to update,
when you change the numerical value they hold in the input.