This is a bunch of tips and techniques related to Oracle PL/SQL and Forms.
Purpose
This is a Javabean component that allows to intercept each key typed in a text field

Then, there is no need to use a Forms timer to intercept each key typed.
The java code
Get the Java code here
Forms configuration
Implementation Class property
oracle.forms.fd.KeyTyped
Properties that can be set
The text of the item
set_custom_property( 'BLOCK.BEAN_ITEM', 1, 'SETTEXT', 'the_text');
The position of the cursor
set_custom_property( 'BLOCK.BEAN_ITEM', 1, 'SETPOS', 'n');
The colors of the item
set_custom_property( 'BLOCK.BEAN_ITEM', 1, 'SETBG', 'rgb value');
set_custom_property( 'BLOCK.BEAN_ITEM', 1, 'SETFG', 'rgb value');
e.g.
set_custom_property( 'BLOCK.BEAN_ITEM', 1, 'SETBG', '200,10,0');
Properties that can be read
The text of the item
get_custom_property( 'BLOCK.BEAN_ITEM', 1, 'GETTEXT', '');
The last character typed
get_custom_property( 'BLOCK.BEAN_ITEM', 1, 'GETCHAR', '');
The keyboard state modifier
get_custom_property( 'BLOCK.BEAN_ITEM', 1, 'GETMODIFIER', '');
Events that can be raised by the bean
A character was typed
KEYTYPED
The sample dialog