Ignore key bindings when the console is active

Fixes #1364, and the same problem for the scanner range mode key and the rotation damping key.

Like all the places where we ignore some input while the console is active, this is an ugly hack.