function keyboardHandler(eventType, character, keycode, modifiers)
if eventType==eEvtKeyTextInput then
Values["password"].String = Values["password"].String .. character
elseif eventType == eEvtKeyDown and keycode == 8 then
Values["password"].String = string.sub(Values["password"].String, 1, -2)
end
startAction("Scenes[yourScene].SceneActions[refresh]")
return false
end
registerEventHandler("keyEvent", "keyboardHandler")
Values["password"].String = Values["password"].String .. "1"