Fix issue where function keys (F1-F20) couldn't be bound correctly.