beginning of 3-key optimised keyboard