replaced existing keyboard manager with further refined version