Implemented button pressing to print to console