switched keys to inputs