Restore CAPS LOCK key state on exit

As well as enabling/disabling CAPS LOCK based on "alwaysrun" setting,
also make sure CAPS LOCK is on when exiting the game if it was on at
startup.