How keyboard works?