Fixed keyboard scanning movements

Fixed #363