First commit: key recognition and drawing