bugfix-calculates temperature when hitting return key-thanks kelsey