Use key dispatcher to log in to an application