Fpga-based keyboard design