Need help with making a password circuit + writing code

You need to debounce the switches and append to the password when a key state changes.