Hi,
CVI does not have an specific function to clear the keyboard buffer, usully what you do is when you get the keyboard event you return a value other than 0 to "swallow" the even so that the event does not gets processed.
If you really need to clear the buffer I guess the way to do it will be through writing and reading to memory using the ReadFromPhysicalMemory() and WriteFromPhysicalMemory(). The keyboard buffer will be just a piece of memory in a specific location that you could clear; there may be some old C examples in the internet that you could use.
I hope this helps.
Regards,
Juan Carlos
N.I.