keyboard fix (from Gerd Hoffmann)