keyboard shortcut for preview function