Fixing double jump bug with keyboard shortcuts whilst input is focused