modified keyboard test according to suggestion