@themadrobot provided a cleaner solution to the Press/Release button code, so I modified my project to work as his does