keyboard settings: many fixes, layout settings widget