Cleaned up how input deals with complete key.