Capture keypress to prevent file naming edit bug #61