Add Key Press functionality and test