synchronisation of dataconnection and keylistener