Detect caps lock key state and use it when returning key inputs