Hello Ed
First of all thanks for your reply.
I have tested this script from the Corona documentation and it works on the NON-TOUCH-Laptops but it does not work nor bring any print feedback on the touch-enabled Laptops.
It seems like the touch-functionality eats away the traditional keyboard functionality. I have two touch-enabled laptops and on none of them this script works.
It would be a miracle for me if anyone could solve how to get this script working on touch-enabled laptops.
local function onKeyEvent( event ) -- Print which key was pressed down/up local message = "Key '" .. event.keyName .. "' was pressed " .. event.phase print( message ) -- If the "back" key was pressed on Android or Windows Phone, prevent it from backing out of the app if ( event.keyName == "back" ) then local platformName = system.getInfo( "platformName" ) if ( platformName == "Android" ) or ( platformName == "WinPhone" ) then return true end end -- IMPORTANT! Return false to indicate that this app is NOT overriding the received key -- This lets the operating system execute its default handling of the key return false end -- Add the key event listener Runtime:addEventListener( "key", onKeyEvent )