Added keyboard listeners. Created a UID scheme.