Move console mode check out of the keyPress code in Console