improved keyboard engine