rename Key class to Input class