finishing the key mappings, determines the keyboard device